package version

import "fmt"

var (
	MajorVersionNumber = 0
	MinorVersionNumber = 0
	RevisionNumber     = 1

	BuildNumber string
	BuildTime   string
	GoVersion   string
)

func PrintVersion() {
	fmt.Println(fmt.Sprintf("Service Version:	%d.%d.%d build-%s", MajorVersionNumber, MinorVersionNumber, RevisionNumber, BuildNumber))
	fmt.Println(fmt.Sprintf("Git commit:	%s", BuildNumber))
	fmt.Println(fmt.Sprintf("Build Time:	%s", BuildTime))
	fmt.Println(fmt.Sprintf("Go Version:	%s", GoVersion))
}

func FormatVersion() string {
	return fmt.Sprintf("Service Version:	%d.%d.%d build-%s", MajorVersionNumber, MinorVersionNumber, RevisionNumber, BuildNumber)
}
